﻿@using BYSJ.Web.Models.shipin
@model shiPin
@{
    ViewBag.Title = "ShiPin";
    Layout = "~/Views/Shared/base.cshtml";
}
@section TitleSection{
    视频课堂
}
@section JsSection{
<link href="~/Content/shipin.css" rel="stylesheet" />
}
@section shipincontent{
    <div class="father clf">
        <div class="daohang">
            <div class="toubu">
                <a href="#"><h3>分类</h3></a>
                <a href="/shipin/@Model.name"><h3>全部</h3></a>
            </div>
            <div class="daohangneirong">
                <ul>
                    @foreach (var item in Model.bianqian)
                    {
                        <li><a href="/shipin/@item.id">@item.name</a></li>
                    }
                </ul>
            </div>
            <hr />
            <div class="xueix">
                <span class="staart">学习明星</span>
            </div>
            @if (Model.start.Count <= 0)
            {
                <div class="xueixcontent">
                   <em>还木有人学习！！ </em>
                </div>
            }
            else
            {
                foreach (var item in Model.start)
                {
                    <div class="xueixcontent">
                        <span>@item.name</span><span>@item.content.Substring(0,18)</span>
                    </div>
                }
            }
        </div>
        <div class="content">
            <div class="rightshipian">
                <ul>
                    @foreach (var item in Model.videl)
                    {
                        <li>
                            <a href="/shipinshow/@item.Id">
                                <img width="325" height="182" src="@item.Url" style="display: block;">
                            </a>
                            <div class="txt">
                                <h3> @item.name (全 @item.count 集)</h3>
                                <a href="/shipinshow/@item.Id">进入学习</a>
                            </div>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>
    
}

